﻿@model CSF.Security.Data.UserRole
@{
    ViewBag.Title = "Edit";
    ViewBag.SubTitle = "User Role";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm())
{  
    <div id="container">
        <div id="formStyle">
            <fieldset>
                <legend></legend>
                @Html.ValidationSummary(true)
                <p>
                    <label>
                        Code</label>
                    @Html.TextBoxFor(model => model.Code)
                    @Html.ValidationMessageFor(model => model.Code)
                </p>
                <p>
                    <label>
                        Name1</label>
                    @Html.TextBoxFor(model => model.Name1)
                    @Html.ValidationMessageFor(model => model.Name1)
                </p>
                <p>
                    <label>
                        Name2</label>
                    @Html.TextBoxFor(model => model.Name2)
                    @Html.ValidationMessageFor(model => model.Name2)
                </p>
                <p>
                    <label>
                        Name3</label>
                    @Html.TextBoxFor(model => model.Name3)
                    @Html.ValidationMessageFor(model => model.Name3)
                </p>
                <p>
                    <label>
                        Sequence</label>
                    @Html.TextBoxFor(model => model.Sequence)
                    @Html.ValidationMessageFor(model => model.Sequence)
                </p>
               
                <p>
                    <label>
                        Is Builtin</label>
                    @Html.CheckBoxFor(model => model.IsBuiltin)
                    @Html.ValidationMessageFor(model => model.IsBuiltin)
                </p>
                <p>
                    @Html.ActionLink("Back to List", "Index")
                </p>
            </fieldset>
            <fieldset>
                <legend></legend>
                <p>
                    <label>
                        Permission List</label>
                </p>
                <div style="width: 260px; height: 400px; border: solid 1px #EAEAEA; overflow: scroll;
                    background-color: #E9F1F8">
                    @Html.Action("RolePermissionControl")
                </div>
            </fieldset>
            <p class="submit">
                <button type="submit">
                    Save</button></p>
        </div>
    </div>
  
}
